<?php 

header("Content-type: image/png");

$dst = imageCreateTrueColor(500,500);

$src = imageCreateFrompng('./002.png');


imagecopy ( $dst, $src , 10, 10 , 190 , 90 , 200 , 200);

//3.输出图片
imagepng($dst);

//4.释放资源
imageDestroy($dst);

imageDestroy($src);



 ?>